<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <!-- 原生精灵图用法 -->
    <!-- <svg>
        <use xlink:href="#icon-bug" />
      </svg> -->
    <!-- <UploadExcel :on-success="handleSuccess" /> -->
    <!-- 组件用法 -->
    <!-- <svg-icon icon-class="bug" />
    </div> -->

    <!-- 把用户上传的照片数量传给子组件 -->
    <!-- <ImageUpload :limit="1" /> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
// import UploadExcel from '@/components/UploadExcel'
export default {
  name: 'Dashboard',
  // components: { UploadExcel },

  computed: {
    ...mapGetters([
      'name'
    ])
  },
  methods: {
    handleSuccess({ header, results }) {
      console.log(header, results)
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
